package com.inst.custom_viewdemo.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.inst.custom_viewdemo.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public class MainActivity extends AppCompatActivity {

    @BindView(R.id.btn_canvas1)
    Button mBtnCanvas1;
    @BindView(R.id.btn_canvas2)
    Button mBtnCanvas2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }

    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_canvas1:
                Intent intent1 = new Intent(this, Canvas1Activity.class);
                startActivity(intent1);
                break;
            case R.id.btn_canvas2:
                Intent intent2 = new Intent(this, Canvas2Activity.class);
                startActivity(intent2);
                break;
            case R.id.btn_canvas3:
                Intent intent3 = new Intent(this, Canvas3Activity.class);
                startActivity(intent3);
                break;
            case R.id.btn_canvas4:
                Intent intent4 = new Intent(this, Canvas4Activity.class);
                startActivity(intent4);
                break;
        }
    }


}
